<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>提交问题反馈 - 智慧园区</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: #f5f5f5;
            height: 100vh;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }
        
        .ios-status-bar {
            height: 44px;
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            padding: 0 16px;
            position: relative;
            z-index: 50;
        }
        
        .ios-status-bar.dark {
            background-color: rgba(30, 30, 30, 0.9);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .ios-tab-bar {
            height: 83px; /* 包含安全区域的高度 */
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-around;
            padding-bottom: 30px; /* 安全区域 */
            z-index: 50;
        }
        
        .ios-tab-bar.dark {
            background-color: rgba(30, 30, 30, 0.9);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
        }
        
        .tab-icon {
            font-size: 22px;
            margin-bottom: 4px;
        }
        
        .tab-label {
            font-size: 10px;
        }
        
        .glass-card {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }
        
        .glass-card.dark {
            background: rgba(30, 30, 30, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .main-content {
            height: calc(100vh - 127px); /* 状态栏 + 底部导航的高度 */
            overflow-y: auto;
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
            padding-bottom: 20px;
        }
        
        .main-content::-webkit-scrollbar {
            display: none;
        }
        
        .dark-mode .glass-card {
            background: rgba(30, 30, 30, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .dark-mode .ios-status-bar {
            background-color: rgba(30, 30, 30, 0.9);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .dark-mode .ios-tab-bar {
            background-color: rgba(30, 30, 30, 0.9);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .feedback-type-item {
            border: 2px solid transparent;
            transition: all 0.3s ease;
        }
        
        .feedback-type-item.selected {
            border-color: #10b981;
            background-color: rgba(16, 185, 129, 0.1);
        }
        
        .dark .feedback-type-item.selected {
            border-color: #34d399;
            background-color: rgba(52, 211, 153, 0.1);
        }
        
        .image-preview {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
        }
        
        .image-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .image-preview .delete-btn {
            position: absolute;
            top: -6px;
            right: -6px;
            width: 20px;
            height: 20px;
            background-color: rgba(239, 68, 68, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 10px;
        }
    </style>
</head>
<body>
    <div id="app" class="relative h-full">
        <!-- iOS 状态栏 -->
        <div class="ios-status-bar">
            <div class="flex justify-between items-center w-full">
                <div class="text-sm font-medium text-gray-800 dark:text-gray-200">9:41</div>
                <div class="flex space-x-2">
                    <i class="fas fa-signal text-gray-800 dark:text-gray-200"></i>
                    <i class="fas fa-wifi text-gray-800 dark:text-gray-200"></i>
                    <i class="fas fa-battery-full text-gray-800 dark:text-gray-200"></i>
                </div>
            </div>
        </div>
        
        <!-- 主内容 -->
        <div class="main-content bg-gray-50 dark:bg-gray-900">
            <!-- 顶部导航栏 -->
            <div class="px-4 py-3 bg-white dark:bg-gray-800 flex items-center border-b border-gray-200 dark:border-gray-700">
                <a href="feedback.html" class="mr-4">
                    <i class="fas fa-chevron-left text-gray-600 dark:text-gray-300"></i>
                </a>
                <h1 class="text-lg font-semibold text-gray-800 dark:text-gray-100">提交问题反馈</h1>
            </div>
            
            <!-- 反馈表单 -->
            <div class="p-4">
                <!-- 反馈类型选择 -->
                <div class="mb-6">
                    <h2 class="text-base font-medium text-gray-800 dark:text-gray-200 mb-3">反馈类型</h2>
                    <div class="grid grid-cols-3 gap-3">
                        <div class="feedback-type-item rounded-xl p-3 bg-white dark:bg-gray-800 shadow-sm flex flex-col items-center justify-center selected">
                            <div class="w-10 h-10 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center mb-2">
                                <i class="fas fa-exclamation-circle text-red-500 dark:text-red-400"></i>
                            </div>
                            <span class="text-xs text-gray-700 dark:text-gray-300">问题反馈</span>
                        </div>
                        <div class="feedback-type-item rounded-xl p-3 bg-white dark:bg-gray-800 shadow-sm flex flex-col items-center justify-center">
                            <div class="w-10 h-10 rounded-full bg-orange-100 dark:bg-orange-900/30 flex items-center justify-center mb-2">
                                <i class="fas fa-lightbulb text-orange-500 dark:text-orange-400"></i>
                            </div>
                            <span class="text-xs text-gray-700 dark:text-gray-300">建议优化</span>
                        </div>
                        <div class="feedback-type-item rounded-xl p-3 bg-white dark:bg-gray-800 shadow-sm flex flex-col items-center justify-center">
                            <div class="w-10 h-10 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center mb-2">
                                <i class="fas fa-question-circle text-blue-500 dark:text-blue-400"></i>
                            </div>
                            <span class="text-xs text-gray-700 dark:text-gray-300">使用咨询</span>
                        </div>
                    </div>
                </div>
                
                <!-- 反馈标题 -->
                <div class="mb-6">
                    <h2 class="text-base font-medium text-gray-800 dark:text-gray-200 mb-3">反馈标题</h2>
                    <div class="glass-card p-4">
                        <input 
                            type="text" 
                            class="w-full bg-transparent border-0 focus:ring-0 text-sm text-gray-800 dark:text-gray-200 placeholder-gray-400" 
                            placeholder="请输入问题标题，简明扼要描述问题"
                        >
                    </div>
                </div>
                
                <!-- 反馈位置 -->
                <div class="mb-6">
                    <h2 class="text-base font-medium text-gray-800 dark:text-gray-200 mb-3">问题位置</h2>
                    <div class="glass-card p-4">
                        <div class="flex items-center justify-between">
                            <div class="flex items-center">
                                <div class="w-6 h-6 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center mr-3">
                                    <i class="fas fa-map-marker-alt text-green-500 dark:text-green-400 text-xs"></i>
                                </div>
                                <div class="text-sm text-gray-800 dark:text-gray-200">选择问题发生位置</div>
                            </div>
                            <i class="fas fa-chevron-right text-gray-400 text-xs"></i>
                        </div>
                    </div>
                </div>
                
                <!-- 反馈内容 -->
                <div class="mb-6">
                    <h2 class="text-base font-medium text-gray-800 dark:text-gray-200 mb-3">反馈内容</h2>
                    <div class="glass-card p-4">
                        <textarea 
                            class="w-full h-32 bg-transparent border-0 focus:ring-0 resize-none text-sm text-gray-800 dark:text-gray-200 placeholder-gray-400" 
                            placeholder="请详细描述您遇到的问题或建议，以便我们更好地解决..."
                        ></textarea>
                    </div>
                </div>
                
                <!-- 上传图片 -->
                <div class="mb-6">
                    <h2 class="text-base font-medium text-gray-800 dark:text-gray-200 mb-3">上传图片</h2>
                    <div class="flex flex-wrap gap-3">
                        <!-- 已上传图片预览 -->
                        <div class="image-preview">
                            <img src="https://images.unsplash.com/photo-1534398079543-7ae6d016b86a?q=80&w=2070&auto=format&fit=crop" alt="反馈图片">
                            <div class="delete-btn">
                                <i class="fas fa-times"></i>
                            </div>
                        </div>
                        
                        <!-- 上传按钮 -->
                        <div class="w-20 h-20 border-2 border-dashed border-gray-300 dark:border-gray-600 rounded-lg flex flex-col items-center justify-center">
                            <i class="fas fa-camera text-gray-400 mb-1"></i>
                            <span class="text-xs text-gray-400">上传图片</span>
                        </div>
                    </div>
                    <div class="text-xs text-gray-500 dark:text-gray-400 mt-2">最多可上传9张图片</div>
                </div>
                
                <!-- 联系方式 -->
                <div class="mb-8">
                    <h2 class="text-base font-medium text-gray-800 dark:text-gray-200 mb-3">联系方式</h2>
                    <div class="glass-card p-4">
                        <div class="flex items-center mb-4">
                            <div class="w-6 h-6 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center mr-3">
                                <i class="fas fa-user text-blue-500 dark:text-blue-400 text-xs"></i>
                            </div>
                            <input 
                                type="text" 
                                class="flex-1 bg-transparent border-0 focus:ring-0 text-sm text-gray-800 dark:text-gray-200 placeholder-gray-400" 
                                placeholder="联系人姓名"
                            >
                        </div>
                        <div class="flex items-center">
                            <div class="w-6 h-6 rounded-full bg-indigo-100 dark:bg-indigo-900/30 flex items-center justify-center mr-3">
                                <i class="fas fa-phone-alt text-indigo-500 dark:text-indigo-400 text-xs"></i>
                            </div>
                            <input 
                                type="tel" 
                                class="flex-1 bg-transparent border-0 focus:ring-0 text-sm text-gray-800 dark:text-gray-200 placeholder-gray-400" 
                                placeholder="联系电话"
                            >
                        </div>
                    </div>
                </div>
                
                <!-- 提交按钮 -->
                <button class="w-full py-3 bg-blue-500 hover:bg-blue-600 text-white font-medium rounded-xl shadow-lg shadow-blue-500/30 transition duration-300 flex items-center justify-center">
                    <i class="fas fa-paper-plane mr-2"></i>
                    提交反馈
                </button>
            </div>
        </div>
        
        <!-- iOS 底部导航栏 -->
        <div class="ios-tab-bar">
            <a href="home.html" class="tab-item text-gray-500 dark:text-gray-400">
                <i class="fas fa-home tab-icon"></i>
                <span class="tab-label">首页</span>
            </a>
            <div class="tab-item text-gray-500 dark:text-gray-400">
                <i class="fas fa-bullhorn tab-icon"></i>
                <span class="tab-label">公告</span>
            </div>
            <div class="tab-item text-gray-500 dark:text-gray-400">
                <i class="fas fa-user tab-icon"></i>
                <span class="tab-label">我的</span>
            </div>
        </div>
    </div>
    
    <script>
        // 检测系统暗色模式
        if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
            document.body.classList.add('dark-mode');
            document.querySelectorAll('.ios-status-bar, .ios-tab-bar, .glass-card').forEach(el => {
                el.classList.add('dark');
            });
        }
        
        // 监听系统暗色模式变化
        window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', e => {
            if (e.matches) {
                document.body.classList.add('dark-mode');
                document.querySelectorAll('.ios-status-bar, .ios-tab-bar, .glass-card').forEach(el => {
                    el.classList.add('dark');
                });
            } else {
                document.body.classList.remove('dark-mode');
                document.querySelectorAll('.ios-status-bar, .ios-tab-bar, .glass-card').forEach(el => {
                    el.classList.remove('dark');
                });
            }
        });
        
        // 反馈类型选择
        document.querySelectorAll('.feedback-type-item').forEach(item => {
            item.addEventListener('click', () => {
                // 移除所有选中状态
                document.querySelectorAll('.feedback-type-item').forEach(el => {
                    el.classList.remove('selected');
                });
                // 添加选中状态
                item.classList.add('selected');
            });
        });
    </script>
</body>
</html> 